<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
<script src="https://cdn.bootcss.com/vue/2.3.4/vue.js"></script>
<div id="root">
	<ele>
		<template scope='props'>
			<span>{{props.text}}</span>
		</template>
	</ele>
</div>
<script>
	Vue.component('ele',{
		render : function(h){
			var self = this;
			return h('div',[
				self.$scopedSlots.default({//这个参数就是指那个绑定的属性props
					text : self.msg
				})
			])
		},
		data : function(){
			return {
				msg : '你好啊,Ken',
			}
		}
	});
	var vm = new Vue({
		el : '#root',
		data : {},
	})
</script>	
</body>
</html>